package main

import (
	"fmt"
	"math/rand"
)

func main() {
	fmt.Println("starting...")

	var numbers [5]int
	var cities [5]string
	var matrix [3][3]int

	fmt.Println("insert array data...")
	for i := 0; i < 5; i++ {
		numbers[i] = i
		cities[i] = fmt.Sprintf("city %d", i)
	}
	fmt.Println(numbers)
	fmt.Println(cities)

	for k, v := range numbers {
		fmt.Println(k, v)
	}
	for _, v := range numbers {
		fmt.Println(v)
	}
	for k, v := range cities {
		fmt.Println(k, v)
	}
	for _, v := range cities {
		fmt.Println(v)
	}

	for i := 0; i < 3; i++ {
		for j := 0; j < 3; j++ {
			matrix[i][j] = rand.Intn(100)
		}
	}

	for i := 0; i < 3; i++ {
		for j := 0; j < 3; j++ {
			fmt.Println(matrix[i][j])
		}
	}

}
